<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Route::post('foo',function (){
    return 'hello';
});
Route::group(['namespace' => 'Resource'],function (){
    Route::post('/play/banner','ResourceController@banner');
    Route::post('/play/footertab','ResourceController@footerTab');




});


Route::group(['namespace' => 'Auth'],function (){
    Route::get('auth/weixin', 'WeixinController@WexinLogin');
    Route::get('auth/weixin/callback', 'WeixinController@handleProviderCallback');


});

